package com.cnswhy.cloud.server.app.controller;

import com.cnswhy.cloud.server.core.dto.CustomerBankSaveDTO;
import com.cnswhy.cloud.server.core.vo.RespVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/test")
@Api(tags = "测试控制层")
@Slf4j
public class TestController extends BaseController {




    @ApiOperation(value = "保存银行信息", httpMethod = "POST")
    @ApiParam(name = "entity", value = "银行账号实体")
    @RequestMapping("/saveData")
    @ResponseBody
    public RespVo saveData(CustomerBankSaveDTO entity, HttpServletRequest request) {
        RespVo respVo = new RespVo();
        respVo.setResult(RespVo.CODE_SUCCESS);
        return respVo;
    }


}
